import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import Updatepass from '../views/updatepass.vue'
import My from '../views/my.vue'
import MyMessage from '../views/myMessage.vue'
import Findpass from '../views/findpass.vue'
import plan from '../views/plan.vue'
import train from '../views/train.vue'
import solution2 from '../views/solution2.vue'
import solution3 from '../views/solution3.vue'
import solution4 from '../views/solution4.vue'
import mycollect from '../views/mycollect.vue'
import mywallet from '../views/mywallet.vue'
import myorder from '../views/myorder.vue'
import shoppingcar from '../views/shoppingcar.vue'
import address from '../views/address.vue'
import level from '../views/level.vue'
import set from '../views/set.vue'
import Mall from '../views/mall.vue'
import ZNSB from '../views/znsb.vue'
import Goodsdetail from '../views/goodsdetail.vue'
import DSYD from '../views/dsyd.vue'
import HWYD from '../views/hwyd.vue'
import JKSP from '../views/jksp.vue'
import NANZIFS from '../views/nanzifs.vue'
import NZFS from '../views/nzfs.vue'
import SNJS from '../views/snjs.vue'
import YDHJ from '../views/ydhj.vue'
import Pay from '../views/pay.vue'
import WriteMydetail from '../views/writeMydetail.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },{
    path: '/plan',
    name: 'plan',
    component: plan
  },
  {
    path: '/train',
    name: 'train',
    component: train
  },
  {
    path: '/solution2',
    name: 'solution2',
    component: solution2
  },
  {
    path: '/solution3',
    name: 'solution3',
    component: solution3
  },
 
   {
     path: '/pay',
     name: 'Pay',
     component: Pay
   },
   {
     path: '/dsyd',
     name: 'DSYD',
     component: DSYD
   },
   {
     path: '/hwyd',
     name: 'HWYD',
     component: HWYD
   },
   {
     path: '/jksp',
      name: 'JKSP',
      component: JKSP
    },
    {
     path: '/nanzifs',
     name: 'NANZIFS',
     component: NANZIFS
    },
    {
      path: '/nzfs',
      name: 'NZFS',
      component: NZFS
    },
    {
      path: '/snjs',
      name: 'SNJS',
      component: SNJS
    },
    {
      path: '/ydhj',
      name: 'YDHJ',
      component: YDHJ
    },
    {
      path: '/goodsdetail',
      name: 'Goodsdetail',
      component: Goodsdetail
    },
    {
      path: '/mall',
      name: 'Mall',
      component: Mall
    },
    {
      path: '/znsb',
      name: 'ZNSB',
      component: ZNSB
    },
     {
    path: '/solution4',
    name: 'solution4',
    component: solution4
  },
  {
    path: '/mycollect',
    name: 'mycollect',
    component:mycollect
  },
  {
    path: '/mywallet',
    name: 'mywallet',
    component:mywallet
  },
  {
    path: '/myorder',
    name: 'myorder',
    component:myorder
  },
  {
    path: '/shoppingcar',
    name: 'shoppingcar',
    component:shoppingcar
  },
  {
    path: '/address',
    name: 'address',
    component:address
  },
  {
    path: '/level',
    name: 'level',
    component:level
  },
  {
    path: '/set',
    name: 'set',
    component:set
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/login',
    name: 'Login',
	component: Login
  },
  {
    path: '/register',
    name: 'Register',
	component: Register
  },
  {
    path: '/findpass',
    name: 'Findpass',
	component: Findpass
  },
  {
    path: '/updatepass',
    name: 'Updatepass',
	component: Updatepass
  },
  {
    path: '/my',
    name: 'My',
	component: My
  },
  {
    path: '/myMessage',
    name: 'MyMessage',
	component: MyMessage
  },
  {
    path: '/writeMydetail',
    name: 'WriteMydetail',
	component: WriteMydetail
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
